package com.heh.mybatisplus.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Schema(description="com-example-demo-pojo-Dept")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "dept")
public class Dept implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description="")
    private Integer id;

    @TableField(value = "deptno")
    @Schema(description="")
    private Integer deptno;

    @TableField(value = "dname")
    @Schema(description="")
    private String dname;

    @TableField(value = "loc")
    @Schema(description="")
    private String loc;

    @TableField(exist = false)
    private List<Emp> list;

    private static final long serialVersionUID = 1L;
}